package com.ofo.model;

public class TextMsg {
	private String ToUserName;
	private String FromUserName;
	private long CreateTime;
	private String MsgType;
	private String Content;

	@Override
	public String toString() {
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append("<xml><ToUserName><![CDATA[").append(ToUserName);
		stringBuffer.append("]]></ToUserName><FromUserName><![CDATA[").append(FromUserName);
		stringBuffer.append("]]></FromUserName><CreateTime>").append(CreateTime);
		stringBuffer.append("</CreateTime><MsgType><![CDATA[text]]></MsgType><Content><![CDATA[").append(Content);
		stringBuffer.append("]]></Content></xml>");
//		String loginInfo = "<xml><ToUserName><![CDATA[gh_204936aea56d]]></ToUserName><FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>";
//		loginInfo += "<CreateTime>12345678</CreateTime><MsgType><![CDATA[text]]></MsgType><Content><![CDATA[你好a啊]]></Content></xml>";
//		return "TextMsg [ToUserName=" + ToUserName + ", FromUserName=" + FromUserName + ", CreateTime=" + CreateTime
//				+ ", MsgType=" + MsgType + ", Content=" + Content + "]";
		return stringBuffer.toString();
	}

	public TextMsg(String toUserName, String fromUserName, long createTime, String msgType, String content) {
		super();
		ToUserName = toUserName;
		FromUserName = fromUserName;
		CreateTime = createTime;
		MsgType = msgType;
		Content = content;
	}

	public TextMsg() {
		super();
	}

	public String getToUserName() {
		return ToUserName;
	}

	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}

	public String getFromUserName() {
		return FromUserName;
	}

	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}

	public long getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(long createTime) {
		CreateTime = createTime;
	}

	public String getMsgType() {
		return MsgType;
	}

	public void setMsgType(String msgType) {
		MsgType = msgType;
	}

	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}
}
